home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ MSO2K Excel 1.xpl < prev    next >
Text File  |  2000-08-07  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Microsoft Office\MS Office 2000\Excel 2000"
  5. "NAME"="Excel Undo"
  6. "VERSION"="1.04"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Undo Steps:"
  9. "DESCRIPTION 1"="You can configure here how many steps can be undone in Excel."
  10. "DESCRIPTION 2"="To restore the original value, clear the field."
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17. sV1="HKCU\Software\Microsoft\Office\9.0\Excel\Options\UndoHistory" 'DW
  18. sPCheck="HKCU\Software\Microsoft\Office\9.0\"
  19. Sub Plugin_Initialize 
  20. if RegPathExists(sPCheck) then
  21.  s=RegReadValue(sV1)
  22.  Call SetUIElement(1,s)
  23. else
  24.  Call Disable()
  25. end if
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  s=GetUIElement(1)
  33.  if len(s)>0 then
  34.     Call RegWriteValue(sV1,s,2)
  35.  else
  36.     s=RegReadValue(sV1)
  37.     if IsEmpty(s)=false then
  38.        Call RegDeleteValue(sV1)
  39.     end if
  40.  end if
  41.  
  42.  Call Logoff
  43. End Sub
  44.  
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.